<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableArticle extends Migration
{

    public function up()
    {
        Schema::create('article', function (Blueprint $table) {
            $table->increments('art_id',11);
            $table->string('art_title',255)->default('');
            $table->string('art_tag',255)->default('');
            $table->string('art_description',255)->default('');
            $table->string('art_thumb',255)->default('');
            $table->text('art_content')->default('');
            $table->integer('art_time')->unsigned()->default(0);
            $table->string('art_editor',50)->default('');
            $table->integer('art_view')->unsigned()->default(0);
            $table->integer('cate_id')->unsigned()->default(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('article');
    }
}
